(function(){

   var a= {
        exec:function(editor){
       var ret = showDialog(getHost() + "/common/goodsLinkInsert/index", "-1", "-1", "980px", "700px","yes", "yes", "no", "yes");
       if (ret != ""&& ret != null) {
           editor.insertHtml(ret);
       }
        }
    },

    b='goodsLinkInsert';
    CKEDITOR.plugins.add(b,{
        requires:['dialog'],
        init:function(editor){
            editor.addCommand(b,a);
            editor.ui.addButton(b,{
                label:'商品リンク作成',
                icon: this.path + '1.png',
                command:b
            });
        }
    });
})();
